<h1>图片列表&nbsp;&nbsp;&nbsp;
<?php 
					if(CakePlugin::loaded("Album")){
						echo $this->element('Album.ajaxUploadForm',array('upload'=>true,'list'=>true,'userCallback'=>'uploadPicCallback'));
					};
					?>
&nbsp;&nbsp;&nbsp;
<?php 
echo $this->Html->link('相册列表',array('plugin'=>'album','controller'=>'albums','action'=>'index'));
?>
</h1>

<table>
<tr>
<th>Id</th>
<th>相册</th>
<th>图片标题</th>
<th>图片描述</th>
<th>文件名</th>
<th>文件大小</th>
<th>文件类型</th>
<th>创建时间</th>
<th>操作</th>
</tr>
<!-- 循环输出数据  -->
	<?php foreach ($albumPicList as $albumPic): ?>
	<tr>
		<td>
			<?php echo $albumPic['AlbumPic']['id']; ?>
		</td>
		<td>
			<?php echo $albumPic['Album']['title']?>
		</td>
		<td>
			<?php echo $albumPic['AlbumPic']['title']?>
		</td>
		<td>
			<?php echo $albumPic['AlbumPic']['description']?>
		</td>
		<td>
			<?php echo $albumPic['AlbumPic']['file_name']?>
		</td>
		<td>
			<?php echo $albumPic['AlbumPic']['file_size']?>
		</td>
		<td>
			<?php echo $albumPic['AlbumPic']['file_type']?>
		</td>
		<td>
			<?php echo $albumPic['AlbumPic']['created']?>
		</td>
		<td>
			<?php echo $this->html->link('查看',"/album/albumpics/view/".$album_id.'/'.$albumPic['AlbumPic']['id']);?>
			&nbsp;
			<?php echo $this->html->link('删除',"/album/albumpics/delete/".$album_id.'/'.$albumPic['AlbumPic']['id'], null,'确认删除?');?>
		</td>
	</tr>
	<?php endforeach; ?>
</table>
<!-- begin 分页 -->
<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>
</p>
<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
</div>
<!-- end 分页 -->
